#include"Stack.h"


int main()
{
	ST st;
	STInit(&st);

	STPush(&st, 1);

	//printf("%d ", STTop(&st));
	//STPop(&st);

	STPush(&st, 2);

	//printf("%d ", STTop(&st));
	//STPop(&st);

	STPush(&st, 3);

	//printf("%d ", STTop(&st));
	//STPop(&st);

	STPush(&st, 4);

	//printf("%d ", STTop(&st));
	//STPop(&st);

	STPush(&st, 5);

	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}

	STDestroy(&st);

	return 0;
}